package common

import "encoding/json"

func SerializeEvent(event interface{}) []byte {
	result, err := json.Marshal(event)
	if err == nil {
		return result
	} else {
		return nil
	}
}